<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>catlist</title>
    <link rel="stylesheet" href="http://www.cnboy.top/Forfun/Bootstrap/css/bootstrap.min.css">
    <script src="http://www.cnboy.top/Forfun/Bootstrap/js/jquery.min.js"></script>
    <script src="http://www.cnboy.top/Forfun/Bootstrap/js/popper.min.js"></script>
    <script src="http://www.cnboy.top/Forfun/Bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <div class="table-responsive">
        <table class="table table-bordered tab-hover">
            <thead>
            <tr>
                <th>序号</th>
                <th>栏目名称</th>
                <th>文章数</th>
                <th>操作</th>
            </tr>
            <tbody>
            <?php foreach($cat as $c)   {?>
            <tr>
                <td><?php echo $c['cat_id']; ?></td>
                <td><?php echo $c['cat_name']; ?></td>
                <td><?php echo $c['cat_num']; ?></td>
                <td><a href="catdel.php?cat_id=<?php echo $c['cat_id']; ?>">删除</a> | <a href="catedit.php?cat_id=<?php echo $c['cat_id']; ?>">编辑</a></td>
            </tr>
            <?php }?>
            </tbody>
        </table>
    </div>
</div>
</body>
</html>